/*
 * Buffer.cpp
 *
 *  Created on: Mar 29, 2012
 *      Author: s146913
 */

#include "Buffer.h"

Buffer::Buffer(int size) :
	size(size) { // 2 = camerabeeldbuffer, 9 = panoramabeeldbuffer
	require((size == 2) || (size == 9));
	data = new byte[size];
	ensure(data != 0);
}
